import { cube } from '../assets/js/math.js'

if (process.env.NODE_ENV !== 'production') {
	console.log('当前是开发环境')
}

function component() {
	let ele = document.createElement('div')
	ele.innerHTML = [
		'hello webpack',
		'treeShaking test',
		'5 cubed is equal to ' + cube(5)
	].join('\n\n')
	return ele
}

document.body.appendChild(component())